<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
	<input type="hidden" name="row[pid]" value="{$_GET.ids}">
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('活动名称')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-title" data-rule="" class="form-control" name="row[title]" type="text" />
        </div>
    </div>
	<div class="form-group">
        <label for="timetype" class="control-label col-xs-12 col-sm-2">{:__('时间类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[timetype]', ['1'=>__('日期'), '2'=>__('星期')])}
        </div>
    </div>
	<div class="form-group" id="datetype">
        <label for="c-dateinfo" class="control-label col-xs-12 col-sm-2">{:__('日期')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-dateinfo" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[dateinfo]" type="text" value="">
        </div>
    </div>
    <div class="form-group" id="weektype" style="display:none">
        <label for="c-telephone" class="control-label col-xs-12 col-sm-2">{:__('星期')}:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[week]', ['0'=>__('请选择'), '1'=>__('星期一'), '2'=>__('星期二'), '3'=>__('星期三'), '4'=>__('星期四'), '5'=>__('星期五'), '6'=>__('星期六'), '7'=>__('星期日')], null, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约时间段')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="">
        </div>
		<div class="col-xs-12 col-sm-1">
			<span style="display: block;padding: 6px 12px;">至</span>
		</div>
		<div class="col-xs-12 col-sm-4">
			<input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-peoplelimit" class="control-label col-xs-12 col-sm-2">{:__('活动人数上限')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-peoplelimit" data-rule="required" class="form-control" name="row[peoplelimit]" type="number" value="100"/>
        </div>
    </div>
	<div class="form-group">
        <label for="c-sort" class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="1"/>
        </div>
    </div>
	<div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('活动详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="" class="form-control editor" rows="15" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>